/*
 * @Author: your name
 * @Date: 2021-11-01 15:58:05
 * @LastEditTime: 2022-01-18 19:13:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \star-cat-h5\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      webRouter: "api/backend/artist/artist/artistlistbyexamine"
    }
  },
  {
    path: '/details',
    name: 'details',
    component: () => import( /* webpackChunkName: "about" */ '../views/Details.vue'),
    meta: {
      webRouter: "api/backend/artist/artist/artistlistbyexamine"
    }
  },
  {
    path: '/search',
    name: 'search',
    component: () => import( /* webpackChunkName: "about" */ '../views/Search.vue'),
    meta: {
      webRouter: "api/backend/artist/artist/artistlistbyexamine"
    }
  },
  {
    path: '/customer_details',
    name: 'customer_details',
    component: () => import( /* webpackChunkName: "about" */ '@/views/CustomerDetails.vue'),
    meta: {
      title: "客户详情",
      webRouter: "api/backend/artist/artist/artistlistbyexamine"
    }
  },
  {
    path: '/collection_details',
    name: 'collection_details',
    component: () => import( /* webpackChunkName: "about" */ '@/views/CollectionDetails.vue'),
    meta: {
      title: "回款信息",
      webRouter: "api/backend/artist/artist/artistlistbyexamine"
    }
  },
  {
    path: '/artist',
    name: 'artist',
    meta: {
      title: "艺人",
      webRouter: "api/backend/artist/artist/artistlist",
      keepAlive: true
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/artist'),
  },
  {
    path: '/artist_list',
    name: 'artist_list',
    meta: {
      title: "艺人列表",
      webRouter: "api/backend/artist/artist/artistlist"
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/artist/List.vue'),
  },
  {
    path: '/artist_add',
    name: 'artist_add',
    meta: {
      title: "新建艺人",
      webRouter: "api/backend/artist/artist/artistlist"
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/artist/add'),
    // children: [{
    //     path: '',
    //     name: 'artist_msg',
    //     component: () => import( /* webpackChunkName: "about" */ '../views/artist/add/Artist'),
    //   }, {
    //     path: 'anchor',
    //     name: 'anchor_msg',
    //     component: () => import( /* webpackChunkName: "about" */ '../views/artist/add/Anchor'),
    //   }, {
    //     path: 'business',
    //     name: 'business_msg',
    //     component: () => import( /* webpackChunkName: "about" */ '../views/artist/add/Business'),
    //   },
    //   {
    //     path: '*',
    //     redirect: '/artist_add'
    //   }
    // ]
  },
  {
    path: '/artist_edit',
    name: 'artist_edit',
    meta: {
      title: "编辑艺人",
      webRouter: "api/backend/artist/artist/artistlist"
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/artist/Edit.vue')
  },
  {
    path: '/select_department',
    name: 'select_department',
    meta: {
      title: "部门",
      webRouter: "api/backend/artist/artist/artistlist"
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/artist/add/SelectDepartment.vue')
  },
  {
    path: '/select_personnel',
    name: 'select_personnel',
    meta: {
      //   title: "人员"
      webRouter: "api/backend/artist/artist/artistlist"
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/artist/add/SelectPersonnel.vue')
  },
  {
    path: '/artist_details',
    name: 'artist_details',
    meta: {
      title: "艺人信息",
      webRouter: "api/backend/artist/artist/artistlist"
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/artist/Details.vue')
  },
  {
    path: '/artist_examine_details',
    name: 'artist_examine_details',
    meta: {
      title: "艺人审核信息",
      webRouter: "api/backend/artist/artist/artistlist"
    },
    component: () => import( /* webpackChunkName: "about" */ '../views/artist/ExamineDetails.vue')
  }
]



const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router